// @(#)main.hh
// Time-stamp: <2009-02-11 19:32:25 root>
// Copyright 2008 Julian Qian
// Author: root@localhost.localdomain
// Version: $Id: main.hh,v 0.0 2008/11/20 05:49:32 root Exp $
// Keywords: 
//

#ifndef _MAIN_H
#define _MAIN_H 1

#include "common.hh"

void daemon_init();
void daemon_exit();
// bool check_proto(devid_t devid);
void PAlarm();
void PHeart();
void PServer();
void PCleanStatus();
void PCtrl();

////////////////////////////////////////////////////////////////
// Dispatch Functions
////////////////////////////////////////////////////////////////
#define DISPATCH_FUNCTION_
#ifdef DISPATCH_FUNCTION_
void ALARM_runloop(int delay);
void _DISPATCH_send_phone_alarm();
void _DISPATCH_send_dev_alarm();
void HEART_runloop(int delay);
void _DISPATCH_active_heart();
#endif


#endif /* _MAIN_H */

